package com.training.food.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Getter
@Setter
@Data
@NoArgsConstructor
@EqualsAndHashCode
@Entity
@Table( name ="check" )
public class Check implements Serializable {
    @Id
    private Integer checkId;
    @Column(name = "checkName")
    private String checkName;
    @Column(name = "card")
    private String card;
    @Column(name = "checkTime")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date checkTime;
    @Column(name = "positive")
    private int positive;
    @Column(name = "total")
    private int total;
    @Column(name = "type")
    private char type;
    @Column(name = "slaughterId")
    private int slaughterId;
}
